package com.domain;

import com.enums.Alignment;
import com.enums.LineEnum;
import com.enums.TextLevEnum;
import com.fonts.ZnHeiFont;
import com.pdf.annotates.CellSize;
import com.pdf.annotates.PdfProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

@Data
public class QhsmVo implements Serializable {

    @PdfProperty(value = "标题", lev = TextLevEnum.ONE_LEV, line = LineEnum.DOWN, font = ZnHeiFont.class)
    private String title = "送货单";

    @PdfProperty(value = "采购单位:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT,row = "2", group = "7", font = ZnHeiFont.class)
    @CellSize(size = {"50","440"})
    private String parityNo = "电能e购";

    @PdfProperty(value = "订单编号:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT, row = "4", group = "1")
    @CellSize(size = {"90","155","60","185"})
    private String projectName = "ORD20241017153700688684";

    @PdfProperty(value = "客服订单号:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT, row = "4", group = "1")
    @CellSize(size = {"90","155","60","185"})
    private String buyerOrgName = "3241017153700026";

    @PdfProperty(value = "客户收货人:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT, row = "4", group = "1")
    @CellSize(size = {"90","155","60","185"})
    private String userName = "test123";

    @PdfProperty(value = "客户手机号:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT, row = "4", group = "1")
    @CellSize(size = {"90","155","60","185"})
    private String mobile = "18735981470";

    @PdfProperty(value = "客户地址:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT, row = "2", group = "8")
    @CellSize(size = {"50","440"})
    private String address = "天津市市辖区和平区";

    @PdfProperty(value = "斯美商城客户经理:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT, row = "4", group = "9")
    @CellSize(size = {"90","155","60","185"})
    private String manager = "张经理";

    @PdfProperty(value = "联系电话:", lev = TextLevEnum.THREE_LEV,alignment = Alignment.LEFT, row = "4", group = "9")
    @CellSize(size = {"90","155","60","185"})
    private String phone = "18735981470";

    @PdfProperty(value = "空格", lev = TextLevEnum.TWO_LEV, alignment = Alignment.LEFT)
    private String hd = "";

    @PdfProperty(value = "商品情况列表", lev = TextLevEnum.TWO_LEV, alignment = Alignment.LEFT, row = "6", head = {"序号","SKU编码", "商品名称", "规格", "单位", "数量"})
    private List<SkuVo> bjInfoList = Arrays.asList(
            new SkuVo("1", "B60CA31", "ABB 30*30 设备1(单位:个)", "60*30", "个", 23),
            new SkuVo("2", "B60CA31", "滤波电容", "30*30", "个", 56),
            new SkuVo("3", "MC550661", "ABB 30*30 设备1(单位:个)", "35*30", "个", 34),
            new SkuVo("4", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("5", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("6", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("7", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("8", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("9", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("10", "MC550661", "滤波fsdfsdfsdfsdfsdfsdfsdfsdfsdfd电容", "35*30", "个", 34),
            new SkuVo("11", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("12", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("13", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("14", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("15", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("16", "MC550661", "滤波电容", "35*30", "个", 34),
            new SkuVo("17", "MC550661", "滤波电容", "35*30", "个", 34)
    );

    @PdfProperty(value = "说明", lev = TextLevEnum.THREE_LEV, alignment = Alignment.LEFT)
    private String desc = "     请您务必对物流公司配送货品当场依据合同中货物验收条款进行验收，如您在送货单上签字，斯美商城则视为您对送达的货物验收合格并接受。";

    @PdfProperty(value = "盖章处", lev = TextLevEnum.THREE_LEV, alignment = Alignment.LEFT, row = "5", group = "33")
//    @CellSize(size = {"80","60","350"})
    @CellSize(size = {"78","118","98","78","118"})
    private String zNum;

    @PdfProperty(value = "客户签字处:", lev = TextLevEnum.THREE_LEV, alignment = Alignment.LEFT, row = "5", group = "33")
    @CellSize(size = {"78","118","98","78","118"})
    private String qNum;

    @PdfProperty(value = "日期:", lev = TextLevEnum.THREE_LEV, alignment = Alignment.LEFT, row = "5", group = "33")
    @CellSize(size = {"78","118","98","78","118"})
    private String time;
}
